(function(){
    var name = '';
    Person = function(value){
        name = value;
    }
    Person.prototype.getName = function(){
        return name
    }
    Person.prototype.setName = function(value){
        name = value
    }
})()
var per1 = new Person('moyu')
console.log(per1.getName())
per1.setName('momo')
console.log(per1.getName())

var per2 = new Person('tom')
console.log(per2.getName())
per2.setName('tim')
console.log(per2.getName())
